import request from '@/utils/request'

// export function getLogList(search) {
//   return request({
//     url: '/mate-system/log/page',
//     method: 'get',
//     params: {
//       current: search.current,
//       size: search.size,
//       keyword: search.keyword,
//       startDate: search.startDate,
//       endDate: search.endDate,
//       prop: search.prop,
//       order: search.order,
//     },
//   })
// }

export function getLogList(page) {
  return request({
    url: '/mate-system/log/page',
    method: 'get',
    params: {
      current: page.currentPage,
      size: page.pageSize,
    },
  })
}

export function deleteLog(ids) {
  return request({
    url: '/mate-system/log/del',
    method: 'post',
    params: {
      ids: ids,
    },
  })
}

export function exportLog() {
  return request({
    url: '/mate-system/sys-log/export-log',
    method: 'post',
    responseType: 'blob',
  })
}
